package models

import "gorm.io/gorm"

type Course struct {
	gorm.Model
	CourseTitle    string  `gorm:"type:varchar(50);comment:'课程标题'"`
	CourseDescribe string  `gorm:"type:varchar(100);comment:'课程描述'"`
	CoursePrice    float64 `gorm:"type:decimal(10,2);comment:'课程价格'"`
}

func (c *Course) TableName() string {
	return "course"
}
